package com.jqsoft.launcher.util;

import java.nio.ByteOrder;

/**
 * Created by Administrator on 2017-12-08.
 */

public class ByteOrderUtil {
    public static boolean isCPUBigEndian() {
        if (ByteOrder.nativeOrder() == ByteOrder.BIG_ENDIAN) {
            return true;
        } else {
            return false;
        }
    }

    public static boolean shouldChangeByteOrder(){
        boolean isBigEndian = isCPUBigEndian();
        return !isBigEndian;
    }

}
